package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by qyhl2 on 2017/12/6.
 */

public class ActivityImageBean implements Parcelable {

    /**
     * ID
     */
    private Long id;

    /**
     * 活动ID
     */
    private Integer activityId;

    /**
     * 作品ID
     */
    private Integer playerWorksId;

    /**
     * 组件ID
     */
    private Integer customViewId;

    /**
     * 图片地址
     */
    private String url;

    /**
     * 创建时间
     */
    private String createTime;

    private int imageWidth;
    private int imageHeight;


    public int getImageWidth() {
        return imageWidth;
    }

    public void setImageWidth(int imageWidth) {
        this.imageWidth = imageWidth;
    }

    public int getImageHeight() {
        return imageHeight;
    }

    public void setImageHeight(int imageHeight) {
        this.imageHeight = imageHeight;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getActivityId() {
        return activityId;
    }

    public void setActivityId(Integer activityId) {
        this.activityId = activityId;
    }

    public Integer getPlayerWorksId() {
        return playerWorksId;
    }

    public void setPlayerWorksId(Integer playerWorksId) {
        this.playerWorksId = playerWorksId;
    }

    public Integer getCustomViewId() {
        return customViewId;
    }

    public void setCustomViewId(Integer customViewId) {
        this.customViewId = customViewId;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeValue(this.activityId);
        dest.writeValue(this.playerWorksId);
        dest.writeValue(this.customViewId);
        dest.writeString(this.url);
        dest.writeString(this.createTime);
        dest.writeInt(this.imageWidth);
        dest.writeInt(this.imageHeight);
    }

    public ActivityImageBean() {
    }

    protected ActivityImageBean(Parcel in) {
        this.id = (Long) in.readValue(Long.class.getClassLoader());
        this.activityId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.playerWorksId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.customViewId = (Integer) in.readValue(Integer.class.getClassLoader());
        this.url = in.readString();
        this.createTime = in.readString();
        this.imageWidth = in.readInt();
        this.imageHeight = in.readInt();
    }

    public static final Creator<ActivityImageBean> CREATOR = new Creator<ActivityImageBean>() {
        @Override
        public ActivityImageBean createFromParcel(Parcel source) {
            return new ActivityImageBean(source);
        }

        @Override
        public ActivityImageBean[] newArray(int size) {
            return new ActivityImageBean[size];
        }
    };
}
